package com.example.viewpager_demo;

import android.content.Context;
import android.widget.Scroller;

/**
 * Created by Lian on 2016/5/9.
 */
public class AutoViewPagerScroller extends Scroller
{
    public AutoViewPagerScroller(Context context)
    {
        super(context);
    }

    @Override
    public void startScroll(int startX, int startY, int dx, int dy, int duration)
    {
        super.startScroll(startX, startY, dx, dy, 1000);
    }
}
